Charming Python: How to actually close a socket by calling shutdown() before calling close()

By Eric Hohenstein You may never have to use the Python low-level socket interface but if you ever do, here’s a tip regarding some surprising Python socket behavior that might help you. The standard Python library has a “socket” module written in Python that wraps an underlying “_socket” module written in C that wraps OS … Continue reading Charming Python: How to actually close a socket by calling shutdown() before calling close()